package com.lucy.nepu.module.book.event;

import com.lucy.nepu.module.book.entity.Book;
import com.lucy.nepu.module.htopic.entity.HorTopic;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

import java.time.Clock;

@Getter
public class BookCreatedEvent extends ApplicationEvent {
    Book book;
    public BookCreatedEvent(Object source, Book book) {
        super(source);
        this.book = book;
    }

    public BookCreatedEvent(Object source, Clock clock) {
        super(source, clock);
    }

}
